/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Database.DBInstructor;
import Database.IFDBInstructor;
import Domain.Instructor;
import java.util.ArrayList;

/**
 *
 * @author Min0
 */
public class CTRLInstructor {
    
    IFDBInstructor Instructor;
    
    public CTRLInstructor()
    {
        Instructor = new DBInstructor();
    }
    
    public void InsertInstructor(Instructor instructor)
    {
        Instructor.InsertInstructor(instructor);
    }
    
    public void InsertInstructor(String LoginID, String Name, String Address, String Country, String PhoneNo, String Email, String Type, float PricePerHour)
    {
        Instructor.InsertInstructor(LoginID, Name, Address, Country, PhoneNo, Email, Type, PricePerHour);
    }
    
    public Instructor GetInstructor(String LoginID)
    {
        return Instructor.GetInstructor(LoginID);
    }
    
    public ArrayList<Instructor> GetInstructorList()
    {
        return GetInstructorList();
    }
    
    public void UpdateInstructor(String LoginID, String Name, String Address, String Country, String PhoneNo, String Email, String Type, float PricePerHour)
    {
        Instructor.UpdateInstructor(LoginID, Name, Address, Country, PhoneNo, Email, Type, PricePerHour);
    }
    
    public void DeleteInstructor(String LoginID)
    {
        Instructor.DeleteInstructor(LoginID);
    }
    
    public void BookInstructor(String LoginID, boolean book)
    {
        Instructor.BookInstructor(LoginID, book);
    }
    
    public int getMax()
    {
        return Instructor.getMax();
    }
}
